home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: FreeNet.Carleton.CA!ah956
- From: ah956@FreeNet.Carleton.CA (Susheel Jalali)
- Subject: Make Error - strange behaviour on SCO OS 3.0
- Message-ID: <Dnyyto.Fp8@freenet.carleton.ca>
- Sender: ah956@freenet2.carleton.ca (Susheel Jalali)
- Organization: The National Capital FreeNet, Ottawa, Ontario, Canada
- Date: Fri, 8 Mar 1996 22:08:12 GMT
-
-
- I wonder if anybody has encountered a similar behaviour
- from the "make" utility on SCO or any other Unix? Mine is
- a version of SystemV.3 I believe.
-
- Here is the description of the error as I run "./make everything" from
- the top-level of the source tree. Once the make gets into the directory
- <top>/......./dsap there are two subdirectories within dsap: net and
- common. The command descriptions for building libnet.a in
- dsap/net/Makefile are almost identical to those for building libcommon.a in
- dsap/common/Makefile. Yet the former is generated successfully while the
- latter only generates the following error:
-
- -------------------------------------
- . . . <stuff deleted> . . . .
- cc -I. -I/usr/include -I../../h -DPEPYPATH -c netvrsn.c
- netvrsn.c
- rm -f libnet.a
- ar: creating libnet.a
- -rw-r--r-- 2 sjalali group 135456 Mar 07 14:18 libnet.a
- QUIPU NET library built normally
- Make: Don't know how to make libcommon.a. Stop.
- *** Error code 1
- *** Error code 1
- -----------------------------------
-
- NOTE: The following are the sections of the 2 Makefile's for the
- corresponding libraries. I noticed that commonvrsn.c was missing
- from dsap/common so I copied netvrsn.c from dsap/net and modified
- it just to see if that would help, but it made no difference. These
- are just one-line source files that define some "char *" version
- string.
-
-
- -------------
- Makefile from "....../dsap/net"
- ----------------
- libnet: libnet.a
-
- libnet.a: netvrsn.o
- -rm -f $@
- @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
- netvrsn.o
- -@rm -f $(UPDIR)libnet.a $(UPDIR)llib-lnet
- -@$(LN) libnet.a $(UPDIR)libnet.a
- -@$(LN) llib-lnet $(UPDIR)llib-lnet
- -@ls -l $@
- -@echo "QUIPU NET library built normally"
-
- netvrsn.c: $(OFILES)
- @$(UTILDIR)version.sh net > $@
-
- -------------
- Makefile from "....../dsap/common"
- -------------------------------------------------------------
-
- libcommon: libcommon.a
-
- libcommon.a: commonvrsn.o
- -rm -f $@
- @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
- commonvrsn.o
- -@rm -f $(UPDIR)libcommon.a $(UPDIR)llib-lcommon
- -@ln libcommon.a $(UPDIR)libcommon.a
- -@$(LN) llib-lcommon $(UPDIR)llib-lcommon
- -@ls -l $@
- -@echo "QUIPU COMMON library built normally"
-
- commonvrsn.c: $(OFILES)
- @$(UTILDIR)version.sh common > $@
-
- l-libcommon: $(CFILES) true
- $(LINT) $(LFLAGS) $(CFILES) $(LLIBS) \
- | grep -v "warning: possible pointer alignment problem"
- -------------
-
- P.S. I have ported the same software before to the SGI Indy with its
- IRIX (aka System V.4) operating system, but I never had this kind of
- error.
-
-
- ==========
-
- Any suggestions or pointers are welcome,
-
- Thanks,
-
- PS.-> if you post an answer, please also e-mail to me at
- ah956@freenet.carleton.ca
-
- Susheel
-